package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : BinarySatan
 * Date : 2016/6/6
 * Description : 订单投诉
 */
public class ApiOrderComplaint extends ApiBaseParamAbstract {
    public ApiOrderComplaint(String orderId, String content, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("orderNo", orderId);
        mParams.put("content", content);
    }

    @Override
    public Call<RootResult<Object>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getOrderComplaint(mParams);
    }
}
